package com.pano.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pano.dao.ImgDao;
import com.pano.entity.Img;
import com.pano.service.ImgService;

@Service
public class ImgServiceImpl implements ImgService {

	@Autowired
	private ImgDao imgDao;

	@Override
	@Transactional
	public void save(Img img) {
		imgDao.save(img);
	}

	@Override
	public Img findByUrl(String url) {
		return imgDao.findByUrl(url);
	}

}
